// 创建存储
import { defineStore } from "pinia";
import { Ref, ref } from "vue";
interface Store {
  menulist: Ref<{ icon: string; text: string; to: string }[]>;
}

export const useStore = defineStore("useStore", {
  state: (): Store => ({
    menulist: ref<{ icon: string; text: string; to: string }[]>([
      { text: "首页", icon: "mdi-folder", to: "/" },
      { text: "组件", icon: "mdi-folder", to: "/components" },
      { text: "可组合", icon: "mdi-folder", to: "/composables" },
      { text: "布局系统", icon: "mdi-folder", to: "/layouts" },
      { text: "中间件", icon: "mdi-folder", to: "/middleware" },
      { text: "Server", icon: "mdi-folder", to: "/server" },
      { text: "Stores", icon: "mdi-account-multiple", to: "pinia" },
    ]),
  }),
  actions: {},
});
